//===- helper.h -----------------------------------------------*--- C++ -*-===//
//
// Copyright 2022 ByteDance Ltd. and/or its affiliates. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//    http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
//===----------------------------------------------------------------------===//

#pragma once

#include "brt/core/common/common.h"
#include "brt/core/framework/op_accessor.h"
#include <cudnn.h>
#include <string>
#include <vector>

namespace brt {
namespace cuda {
namespace conv {
void handleConvParam(const OpAccessor &accessor, const Shape &shape_input,
                     const Shape &shape_filter, const Shape &shape_output,
                     int64_t &N, int64_t &iC, int64_t &iH, int64_t &iW,
                     int64_t &oC, int64_t &oH, int64_t &oW, int64_t &kH,
                     int64_t &kW, int64_t &strideH, int64_t &strideW,
                     int64_t &paddingH, int64_t &paddingW, int64_t &dilateH,
                     int64_t &dilateW, cudnnTensorFormat_t &format);
} // namespace conv
} // namespace cuda
} // namespace brt
